package com.xunji.user.util;


import com.xunji.user.common.TokenUtils;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: orange-wisdom
 * @author: 吃素的沙漠狼
 * @create: 2025-06-28 16:03
 **/
public class RequestContextUtil {
    public static String getUser(HttpServletRequest request) {
        String token = request.getHeader("Authorization");
        return TokenUtils.getUserId(token);
    }
}
